using UnityEngine;
using UnityEngine.EventSystems;

public class AnalogField : MonoBehaviour, IPointerEnterHandler, IDragHandler, IEventSystemHandler
{
	public AnalogController analogController;

	public void OnPointerEnter(PointerEventData eventData)
	{
		if (!analogController.analogData.isActive)
		{
			eventData.pointerEnter = analogController.gameObject;
			analogController.OnPointerEnter(eventData);
		}
	}

	public void OnDrag(PointerEventData eventData)
	{
		eventData.pointerDrag = analogController.gameObject;
	}
}
